import http from '@/utils/http';

export const fileUrl = process.env.VUE_APP_FILE_URL;

// 保存个人资料
export const saveUserInfo = (params) => {
	return http.post(`/app/saveUserInfo`, params)
}

// 保存用户头像
export const saveUserAvatar = (params) => {
	return http.post(`/app/saveUserAvatar`, params)
}

// 获取个人资料
export const getUserInfo = (params) => {
	return http.get(`/app/getUserInfo`, params)
}